Delegate method of the Activator, sent when it is clicked in. If Locus is inactive, this will cause it to activate. If it is already active, this causes Locus to deactivate.
*/
{
int i, count;
id windowList;
[self showActivator:self];
if ( !stillActivating ) { // The bar was hit when we were already active
// 'Bury' viewers by moving them to the back of the screen list
// This only needs to be done if they aren't automatically hidden
// when the app deactivates
if ( !hideDeactive ) {
windowList = [NXApp windowList];
count = [windowList count];
for ( i=0; i<count; i++ )
if ( [[windowList objectAt:i] class] == [FolderViewer class] )
[[windowList objectAt:i] orderBack:self];
viewersBuried = YES;
}
[NXApp deactivateSelf];
}
return ( self );
}
- activator
{
return ( activator );
}
- doneActivating:sender
{
// - doneActivating: is called through a delayed perform
// immed. after the app activates... by the time it actually
// gets called, everything should have been taken care of...